{config_load file="index.conf"}
{include file="inc/doctype.tpl"}

<head>
    <title>Invite</title>
    {include file="inc/include.tpl"}
</head>

<body>

{include file="inc/logo.tpl"}
{include file="inc/global_menu.tpl"}

<div><strong>Invite <a href="/another/profile/{$data.user_id}/">{$data.user_login}</a> to</strong></div>

{if $invite}
    <p>Invitation send</p>
{/if}
{if sizeof($rooms)}
	<form action="" method="post">
	    <select name="invite">
        {foreach from=$rooms item=item}
            <option value="{$item.room_id}">{$item.room_name}</option>
        {/foreach}
	    </select>
	    <input type="submit" value="Invite" />
	</form>
{else}
    <p>Nothing.</p>
{/if}
<p>&nbsp;</p>
<a href="/another/index/{$data.user_id}/">User menu</a>
</body>

</html> 